package com.zl.controller;

import com.zl.dao.UserDao;
import com.zl.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

//@RequestMapping("/test")
@Controller
public class TestController {
    @Autowired
    UserDao ud;
    @ResponseBody
    @RequestMapping("/test")
    public String test(){
        User user=new User();
        user.setLoginName("admin");
        user.setPassword("123456");
        System.out.println(ud.login(user));
        return "fff";
    }
}
